import {createI18n} from "vue-i18n";
import zh from "./modules/zh.ts";
import en from "@/plugins/i18n/modules/en.ts";


//國際化 -->多語言
const i18n = createI18n({
    legacy: false,
    locale: localStorage.getItem('lang') || 'en',
    globalInjection: true,
    messages: {
        zh, en,
    },
    warnHtmlMessage: false,
});

export default i18n;